package com.financing.platform.service.impl;

import java.sql.SQLException;
import java.util.Collections;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.financing.platform.dao.IFpFundManagerDao;
import com.financing.platform.dto.FpFundManagerDTO;
import com.financing.platform.service.IFpFundManagerService;
import com.financing.platform.util.SqlName;

/**
 * @Description:Service实现类
 * @version 1.0
 * @created caojiayao
 */
 
@Service(value="fpFundManagerService")
public class FpFundManagerServiceImpl implements IFpFundManagerService {
    @Autowired
	private IFpFundManagerDao fpFundManagerDao;
	
	
	@Override
	public FpFundManagerDTO getFpFundManager(FpFundManagerDTO dto) {
		return fpFundManagerDao.getFpFundManager(dto);
	}
	
	
	@Override
	public Integer insertFpFundManager(FpFundManagerDTO dto) {
		return fpFundManagerDao.insertFpFundManager(dto);
	}

	
	@Override
	public Integer updateFpFundManager(FpFundManagerDTO dto) {
		return fpFundManagerDao.updateFpFundManager(dto);
	}
	
	@Override
	public Integer delFpFundManager(Integer id) {
		return fpFundManagerDao.delFpFundManager(id);
	}
	
	@Override
	public List<FpFundManagerDTO> listFpFundManager(FpFundManagerDTO dto) {
		return fpFundManagerDao.listFpFundManager(dto);
	}
	
	@Override
	public Integer countFpFundManager(FpFundManagerDTO dto){
		return fpFundManagerDao.countFpFundManager(dto);
	}
	
	public List<FpFundManagerDTO> listFpFundManagerByCompanyId(String companyId){
		return fpFundManagerDao.listFpFundManagerByCompanyId(companyId);
	}
	
	public List<FpFundManagerDTO> listFpFundManagerByFundId(String fundId){
		return fpFundManagerDao.listFpFundManagerByFundId(fundId);
	}
}
